import { Table, Column, Model, AutoIncrement, PrimaryKey, AllowNull } from 'sequelize-typescript';

@Table({ tableName: 'users' })
export default class User extends Model {
  @AutoIncrement
  @PrimaryKey
  @Column({ comment: 'ID' })
  id!: number;

  @AllowNull(false)
  @Column({ comment: '用户姓名' })
  name!: string;

  @AllowNull(false)
  @Column({ comment: '电子邮箱' })
  email!: string;

  @Column({ comment: '备注' })
  remark?: string;
}